Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Make sure the package can be built on Flutter web #990

Merged
merged 6 commits into from
Jul 26, 2024

Conversation

dshukertjr
Copy link
Member

What kind of change does this PR introduce?

Fixes an issue where the package is not able to build on Flutter web

Closes #989

@dshukertjr
Copy link
Member Author

dshukertjr commented Jul 26, 2024

Will create a PR for publishing a new version right after this PR is merged.

Once we publish a new yet_another_json_isolate with this update, the currently retracted functions_client v2.3.0 will be restored.

@@ -21,3 +21,21 @@ dev_dependencies:

flutter:
uses-material-design: true
melos_managed_dependency_overrides: functions_client,gotrue,postgrest,realtime_client,storage_client,yet_another_json_isolate
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure about these changes here. Did you run any command to produce these lines? Is there no way to include the example in the bootstrap to avoid modifying the overrides in the pubspec.yaml?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the concern? For now, this solves our issue, ensuring that the package works on Flutter web. I can see that this can cause slight inconvenience for anyone viewing the example directly, but that's not the top priority issue that we have right now, and we can take our time to figure out if there is a better way of overriding the dependencies.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I have updated the melos config instead of the pubspec.yaml file of the example.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And of course now the tests are failing 😂

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't add the packages to the bootstrap section. Just the oneline under packages

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI is probably failing, because pub get for the example app is running before some of the other packages. I have to run now for a bit, but will take a look when I come back.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue was, that melso tried to use the flutter cli, because the example is a flutter package and was not excluded like the supabase_flutter package everywhere manually.

@dshukertjr
Copy link
Member Author

Nice! Thanks for the fix @Vinzent03 !

@dshukertjr dshukertjr merged commit 742b761 into main Jul 26, 2024
12 checks passed
@dshukertjr dshukertjr deleted the fix/functions-web branch July 26, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Object cannot be assigned to the parameter type Map<dynamic, dynamic>
3 participants